import logo from './logo.svg';
import { Form, Input,Button } from 'antd-mobile'
import { getProductList } from './api';

function App() {
  const submit = (values)=>{
    console.log('values',values);
    getProductList().then((res)=>{
      console.log(res);
    })
  }
  return (
    <div className="App">
      {/* <div>
        hello
        <p>段落</p>
      </div> */}
       <Form layout='horizontal' onFinish={submit}>
        <Form.Item label='账号' name='mobile'> 
          <Input placeholder='请输入' />
        </Form.Item>
        <Form.Item label='密码' name='password'>
          <Input placeholder='请输入' type='password' />
        </Form.Item>
        <Form.Item>
          <Button type='submit' color='primary' size='large'>提交</Button>
        </Form.Item>
      </Form>
    </div>
  );
}

export default App;
